import { reactive } from "vue";

const SSystem = reactive({

    load:()=>{
        SSystem.defaultActive = CookieL.get('defaultActive') || ''
    },
    token:'',
    defaultActive: '',
    darkIndex:1,//白天2夜晚
    /**
     * 更新主题
     * @param val 
     */
    updataMenu:(val:string)=>{
        SSystem.defaultActive = val
        CookieL.set('defaultActive',val)
    }
})

export default SSystem

